package com.tjf.traffic.bean;

import com.tjf.traffic.utils.TrafficFormat;

/**
 * @author: tjf
 * @date: 2022-12-10
 * @desc： 移动流量实体类
 */
public class TrafficBean {


    private  long  TotalData;// 总流量数据
    private  long  RxBytes;//移动 下载字节
    private long  TxBytes;//移动 上传字节
    String uid;//包名uid

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public long getTotalData() {
        return TotalData;
    }

    public void setTotalData(long totalData) {
        TotalData = totalData;
    }

    public long getRxBytes() {
        return RxBytes;
    }

    public void setRxBytes(long rxBytes) {
        RxBytes = rxBytes;
    }

    public long getTxBytes() {
        return TxBytes;
    }

    public void setTxBytes(long txBytes) {
        TxBytes = txBytes;
    }

    @Override
    public String toString() {
        return "TrafficBean{" +
                "TotalData=" + TrafficFormat.formatByte(TotalData) +
                ", RxBytes=" + TrafficFormat.formatByte(RxBytes) +
                ", TxBytes=" +TrafficFormat.formatByte( TxBytes )+
                '}';
    }
}
